#include "resource.h"
#include <windows.h>
#include <map>
#include <vector>

using namespace std;

class AccountList
{
public:
	AccountList(string filename);
	~AccountList();
	void InsertAccountInfoToTreeView(HWND hWnd);
	string GetSelectedAccount(HWND hWnd);
	string GetSelectedParentAccount();
	string GetSelectedPassword();
	string GetSelectedHost();
	string GetSelectedServerId();
private:
	vector<string> vAccount;
	vector<string> vParentAccount;
	vector<string> vPassword;
	vector<string> vHost;
	vector<string> vServerId;
	map<string,int> account_id_map;
	void LoadAccountInfoFromString(string str);
	int selectedIndex;
};